package sbp.dao;

import java.util.List;
import org.hibernate.Session;
import sbp.modelos.Identificacao;

public class IdentificacaoDAO extends DAO<Identificacao> {

	private Session session;

	public IdentificacaoDAO(Session session) {
		super(session, Identificacao.class);
	}
	
	@SuppressWarnings("unchecked")
	public List<Identificacao> listar() {	
		return this.session.createCriteria(Identificacao.class).list();
	}
	
	
	public void setSession(Session session) {
		this.session = session;
	}
}
